package com.example.demo2.mapper;

import com.example.demo2.entity.Target;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EvaluationContentMapper {

    //查询教学环节及详细内容
    List<Target> findEvaluationContent(Integer courseId);

    //删除教学环节及详细内容
    int deleteEvaluationContent(@Param("courseId") Integer courseId);

    //更新教学环节及详细内容
    int updateEvaluationContent(@Param("courseId") Integer courseId, @Param("courseEvaluation") String courseEvaluation, @Param("courseEvaluationContent") String courseEvaluationContent);

}
